package com.example.list;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ListAdapter;
import android.widget.ListView;

import com.example.haohao.myview.FixItemListView;
import com.example.haohao.myview.expandView.MyExpandActivity;
import com.example.list.bigbang.BigBangActivity;
import com.example.list.note.NoteActivity;
import com.example.list.swiperefresh.SwipeRefreshActivity;
import com.example.mvptest.JokeActivity;

import java.util.ArrayList;
import java.util.List;

import mvp.MVPActivity;

public class LinearLayoutBottomActivity extends AppCompatActivity {

    private List<MyClassBean> myClassList=new ArrayList<>();
    private MyListAdapter adapter;
    private ListView listview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_linear_layout_bottom);

        listview = (ListView) findViewById(R.id.ll_listview);

        myClassList.add(new MyClassBean("mvp", MVPActivity.class));
        myClassList.add(new MyClassBean("mvp2", JokeActivity.class));
        myClassList.add(new MyClassBean("AddView", AddViewActivity.class));
        myClassList.add(new MyClassBean("AddView2,动态修改视图", AddViewActivity2.class));
        myClassList.add(new MyClassBean("刷新", SwipeRefreshActivity.class));
        myClassList.add(new MyClassBean("BigBang", BigBangActivity.class));
        myClassList.add(new MyClassBean("popupwindow2", MyExpandActivity.class));
        myClassList.add(new MyClassBean("btnbg", BtnBgActivity.class));
        myClassList.add(new MyClassBean("Note", NoteActivity.class));
        myClassList.add(new MyClassBean("mvp", MVPActivity.class));
        myClassList.add(new MyClassBean("mvp2", JokeActivity.class));
        myClassList.add(new MyClassBean("AddView", AddViewActivity.class));
        myClassList.add(new MyClassBean("AddView2,动态修改视图", AddViewActivity2.class));
        myClassList.add(new MyClassBean("刷新", SwipeRefreshActivity.class));
        myClassList.add(new MyClassBean("BigBang", BigBangActivity.class));
        myClassList.add(new MyClassBean("popupwindow2", MyExpandActivity.class));
        myClassList.add(new MyClassBean("btnbg", BtnBgActivity.class));
        myClassList.add(new MyClassBean("Note", NoteActivity.class));
        myClassList.add(new MyClassBean("mvp", MVPActivity.class));
        myClassList.add(new MyClassBean("mvp2", JokeActivity.class));
        myClassList.add(new MyClassBean("AddView", AddViewActivity.class));
        myClassList.add(new MyClassBean("AddView2,动态修改视图", AddViewActivity2.class));
        myClassList.add(new MyClassBean("刷新", SwipeRefreshActivity.class));
        myClassList.add(new MyClassBean("BigBang", BigBangActivity.class));
        myClassList.add(new MyClassBean("popupwindow2", MyExpandActivity.class));
        myClassList.add(new MyClassBean("btnbg", BtnBgActivity.class));
        myClassList.add(new MyClassBean("listview最后一个", NoteActivity.class));
        adapter = new MyListAdapter(this, myClassList);
        listview.setAdapter((ListAdapter) adapter);
    }
}